export const tableColumns = [
  {
    key: 'type1',
    name: '类型',
    visible: true
  },
  {
    key: 'variable',
    name: '变量',
    visible: true
  },
  {
    key: 'variableName1',
    name: '变量名/文本值/内嵌表名',
    visible: true,
    width: 180
  },
  {
    key: 'variableType1',
    name: '变量类型',
    visible: true
  },
  {
    key: 'hideColumn',
    name: '隐藏',
    visible: true
  },

  {
    key: 'edit',
    name: '修改',
    visible: true
  },  
  {
    key: 'sort1',
    name: '排序',
    visible: true
  },  
  {
    key: 'delete',
    name: '删除',
    visible: true
  },  
  {
    key: 'rowControlJson1',
    name: '行控制',
    visible: true
  }
]

export const typeEnumeration = {
  1: '变量',
  2: '文本', 
  3: '内嵌表',
  4: '图片'
}

export const editTypeList = [
  { label: '变量', value: '1', disabled: true },
  { label: '文本', value: '2', disabled: false },
  { label: '内嵌表', value: '3', disabled: false },
  { label: '图片', value: '4', disabled: false }
]

export const addTypeList = [
  // { label: '变量', value: '1', disabled: true },
  { label: '文本', value: '2', disabled: false },
  { label: '内嵌表', value: '3', disabled: false },
  { label: '图片', value: '4', disabled: false }
]

// 编码字段映射
export const encodeVariableType = {
  编码名: 'codeName',
  编码名中文: 'codeNameCn',
  编码值: 'codeValue',
  编码描述: 'codeDescribe',
  生效状态: 'effectuate',
  来源: 'source',
  排序: 'sort',
  单位: 'unit',
  选项: 'option',
  扩展1: 'expandOne',
  扩展2: 'expandTwo',
  扩展3: 'expandThree',
  扩展4: 'expandFour',
  扩展5: 'expandFive',
  扩展6: 'expandSix',
  扩展7: 'expandSeven'
}
